<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="三联表单" bodyClass="white-bg" libs=["bootstrapSelect"]/>
<div class="wrapper wrapper-content ibox-content">
    <@f.form id="task-form-complete" class="form-horizontal">
    <!--<input name="id" value="" type="hidden">-->

    <h4 class="form-header h4"><@ctx.i18n text = "基本信息"/></h4>

    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "应贴票金额"/>：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <!--<span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->

                        <input class="form-control" name="should" value="" type="text"  >
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "项目经理"/>：</label>
                <div class="col-sm-8">
                    <!--<input class="form-control" name="ceoName" value="" type="text"  >-->
                    <@f.tableselect name="nameId" value="" labelValue="" boxTitle="多选用户信息"  checked=false
                    tableInfo = "[{field:'username',title:'账号'},{field:'name',title:'姓名',query: true},{field:'compName',title:'归属公司'},
                    {field:'deptName',title:'归属机构'},{field:'email',title:'邮箱'},{field:'mobile',title:'手机号码'},
                    {field:'status',title:'状态',dict:'sys_user_show_hide',query: true},{field:'createTime',title:'创建时间'}]"  placeholder="表格弹出式页面，实用于大数据，搜索选择，" />
                </div>
            </div>
        </div>

    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "状态"/>：</label>
                <div class="col-sm-8">
                    <!--<input name="status" class="form-control" value=""  type="text" required>-->
                    <@f.select name="status" dictType="status" blankValue="" blankLabel="所有"/>
                </div>
            </div>
        </div>

        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "项目档案编号"/>：</label>
                <div class="col-sm-8">
                    <@f.tableselect name="fileId" value="" labelValue=""  url="bpm/archive/archiveList"  checked=false keyId="id"
                    boxTitle="项目档案编号"
                    tableInfo = "[{field:'name',title:'项目档案编号',query: true},{field:'ceoName',title:'项目经理',query: true},{field:'createTime',title:'创建时间'}]"
                    placeholder="表格弹出式页面，实用于大数据，搜索选择，" />
                    <!--<input class="form-control" name="fileNumber" value="" type="text" >-->
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "开具部门"/>：</label>
                <div class="col-sm-8">
                    <input name="openDepartment" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "项目名称"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="projectName" value="" type="text">
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "付款单位"/>：</label>
                <div class="col-sm-8">
                    <input name="paymentNuit" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "合同额"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="contractSum" value="" type="text" >
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "合同编号"/>：</label>
                <div class="col-sm-8">
                    <input name="contractNo" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "开票金额回写"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="billing" value="" type="text" >
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "已结算到账金额"/>：</label>
                <div class="col-sm-8">
                    <input name="settlement" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "税金"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="taxes" value="" type="text" >
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "管理费"/>：</label>
                <div class="col-sm-8">
                    <input name="manage" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "仪器费"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="instrument" value="" type="text" >
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "材料费"/>：</label>
                <div class="col-sm-8">
                    <input name="material" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "报告审查费"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="reports" value="" type="text" >
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "其他费用"/>：</label>
                <div class="col-sm-8">
                    <input name="other" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "管理费合计"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="manageTotal" value="" type="text" >
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "管税总计"/>：</label>
                <div class="col-sm-8">
                    <input name="tax" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "劳务费"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="fee" value="" type="text" >
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "总计"/>：</label>
                <div class="col-sm-8">
                    <input name="total" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "可结算资金"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="settlements" value="" type="text" >
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "贴票金额"/>：</label>
                <div class="col-sm-8">
                    <input name="ticket" class="form-control" value=""  type="text" required>
                </div>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="form-group">
                <label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "备注"/>：</label>
                <div class="col-sm-8">
                    <input class="form-control" name="remark" value="" type="text" >
                    <!--readonly="true"-->
                </div>
            </div>
        </div>
    </div>
    <!--<div class="row">-->
    <!--<div class="col-sm-6">-->
    <!--<div class="form-group">-->
    <!--<label class="col-sm-4 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "状态"/>：</label>-->
    <!--<div class="col-sm-8">-->
    <!--<input name="status" class="form-control" value=""  type="text" required>-->
    <!--</div>-->
    <!--</div>-->
    <!--</div>-->

    <!--</div>-->

</div>




</@f.form>
<div class="hr-line-dashed"></div>
<div class="row" style="text-align: center;" id="_addTab">

    <button type="button" class="btn btn-sm btn-primary" onclick="opt.form.submit()"><i class="fa fa-check"></i><@ctx.i18n text = "保存"/></button>&nbsp;
    <button type="button" class="btn btn-sm btn-danger" onclick="opt.modal.closeTab()"><i class="fa fa-reply-all"></i><@ctx.i18n text = "关闭"/></button>
</div>
</div>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "bpm/sanlian";

    $('#tipBut button').click(function(){
        $('#comment').text($(this).text())
    });

    $("#task-form-complete").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.saveTab(prefix + "/add", $('#task-form-complete').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>